#ifndef PEOPLEITEM_H
#define PEOPLEITEM_H

#include <QWidget>
#include<QPixmap>
#include"peoplemes.h"
namespace Ui {
class PeopleItem;
}

class PeopleItem : public QWidget
{
    Q_OBJECT

public:
    explicit PeopleItem(QWidget *parent = nullptr,int row=0,QString name="",QPixmap pm=QPixmap(""));
    ~PeopleItem();
    QString PeopleId;
    QString people_name;
    QPixmap people_icon;
    QString last_mes;
    QVector<PeopleMes*> allpeoplemes;
    int peoplerow;
public:
    void DealLastMesRenew(const QString& mes);
    void init(QString name,QPixmap pm);
    void AddOneMes(QString mes,QPixmap pm,QString time,bool own);
private:
    Ui::PeopleItem *ui;
};

#endif // PEOPLEITEM_H
